]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Close screenshot UI if we failed to acquire a grab
authorSebastian Keller <skeller@gnome.org>
Sat, 30 Apr 2022 06:24:14 +0000 (08:24 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 4 May 2022 17:28:08 +0000 (17:28 +0000)
Otherwise the actors will remain invisible yet reactive covering up the
screen.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5414
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2287>

js/ui/screenshot.js

index 98cfec46853cf3fdf1aafc38df2a419075f72598..33ea6e85b8a4be2b4375b35c597ce8af61ddce98 100644 (file)
@@ -1510,8 +1510,10 @@ var ScreenshotUI = GObject.registerClass({
             actor: this,
             onUngrab: () => this.close(),
         });
-        if (!grabResult)
+        if (!grabResult) {
+            this.close(true);
             return;
+        }
 
         this._refreshButtonLayout();